﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using Maticsoft.DBUtility;
using System.Text;
using DQYT.HTDZ.Common;

namespace SkWeb.RiskDB
{
    /// <summary>
    /// Handler1 的摘要说明
    /// </summary>
    public class Handler1 : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            try
            {
                //string resultJson = string.Empty;
                //string format = "\"total\":{0}, \"rows\":{1}";

                //string strSql = "select t.id ,t.name,t.lng,t.lat, t.jb,t.gy,t.rank,t.address，b.des from tb_wellinfo t left join tb_riskblockinfo b on  t.block_id=b.id";
                //DataTable dt = OracleHelper.Query(strSql).Tables[0];
                
                //context.Response.ContentType = "text/json";
                //int recordCount = dt.Rows.Count;
                //resultJson = JsonHelper.ToJson(dt);
                //resultJson = "{" + string.Format(format, recordCount,
                //       string.IsNullOrWhiteSpace(resultJson) ? "[]" : resultJson) + "}";
               // context.Response.ContentType = "application/x-javascript";
                //string callback = context.Request.QueryString["callback"].Trim();
                //string name = "ddd";// context.Request.QueryString["name"].Trim();
                string str = "dddd";//callback + "([{\"SuitName\":\"" + name + "\"}]);";
                context.Response.Write(str);
                context.Response.End();
                //context.Response.Write("ddd");
            }
            catch (Exception ex)
            {
                string s = ex.Message;
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}